getResourceData

abstract fun getResourceData(uri: Uri, chunkSize: Int, onData: (ByteBuffer) -> Boolean)

Provides the data of a resource at the given Uri. Note that it is a synchronous function and all the chunks are provided immediately before the function returns.

Parameters

uri

the uri of the resource.

chunkSize

the size of the chunks in which the resource data is provided.

onData

the callback function that is called with the resource data. The callback will be called as long as there is data left to provide and the callback returns true.